$--color-primary: #1677ff;
$--font-path: "~element-ui/lib/theme-chalk/fonts";

$--input-small-font-size: 14px;
$--button-font-weight: normal;
$--button-small-font-size: 14px;
$--button-small-padding-vertical: 8px;
$--button-small-padding-horizontal: 14px;
$--button-mini-font-size: 14px;
$--button-mini-padding-vertical: 6px;
$--button-mini-padding-horizontal: 12px;
$--disabled-fill-base: #fafafa;
$--disabled-color-base: #666;

@import "~element-ui/packages/theme-chalk/src/index.scss";

.v-modal {
    opacity: 0.1;
}

.el-loading-mask {
    background-color: rgba(black, 0.1);
    cursor: not-allowed;

    &.is-fullscreen {
        .el-loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            margin: -20px 0 0 -20px;
            width: 40px;
            height: 40px;
            background: url() no-repeat center center/contain;

            .circular {
                display: none;
            }
        }
    }
}

.el-checkbox {
    &.is-bordered {
        &.is-checked {
            border-color: $--border-color-base;
        }
    }
}

.el-checkbox__input {
    &.is-focus {
        .el-checkbox__inner {
            border-color: $--border-color-base;
        }
    }
}

.el-message {
    @media screen and (max-width: 600px) {
        width: 320px;
        min-width: 0;
    }
}

.el-message-box {
    padding-bottom: 0;
    max-width: 80%;
}

.el-message-box__header {
    padding: 10px;
    background-color: #f0f0f0;
}

.el-message-box__title {
    margin-right: 50px;
    font-size: 16px;
    line-height: 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.el-message-box__headerbtn {
    top: 0;
    right: 0;
    padding: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 20px;

    .el-message-box__close {
        vertical-align: middle;
    }
}

.el-message-box__content {
    margin: 15px;
    padding: 0;
}

.el-message-box__btns {
    margin: 30px 15px 15px;
    padding: 0;
}

.el-table {
    .cell {
        line-height: 1.5;

        & > a[href] {
            color: $--color-primary;
            text-decoration: none;
            cursor: pointer;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    th {
        & > .cell {
            line-height: 1;
        }
    }
}

.el-table__empty-text {
    padding: 70px 0 20px;
    width: auto;
    line-height: 1;
    background: url() no-repeat center 20px / auto 40px;
}

.el-form-item {
    &:last-child {
        margin-bottom: 1px;
    }
}

.el-form-item__label {
    color: $--color-primary;
}

.el-form-item__content {
    color: $--color-text-regular;
}

.el-input-group__append,
.el-input-group__prepend {
    background-color: #fafafa;
}

.el-tag {
    padding-top: 6px;
    padding-bottom: 6px;
    height: auto;
    min-height: 32px;
    font-size: 14px;
    line-height: 18px;
    white-space: normal;
    vertical-align: top;
}

.el-tag--medium {
    padding-top: 4px;
    padding-bottom: 4px;
    min-height: 28px;
    font-size: 14px;
    line-height: 18px;
}

.el-tag--small {
    padding-top: 3px;
    padding-bottom: 3px;
    min-height: 24px;
    font-size: 12px;
    line-height: 16px;
}

.el-tag--mini {
    padding-top: 1px;
    padding-bottom: 1px;
    min-height: 20px;
    font-size: 12px;
    line-height: 16px;
}

.el-status--primary,
.el-status--success,
.el-status--warning,
.el-status--danger,
.el-status--info {
    &:before {
        margin-right: 4px;
        content: "●";
    }
}

.el-status--primary {
    &:before {
        color: $--color-primary;
    }
}

.el-status--success {
    &:before {
        color: $--color-success;
    }
}

.el-status--warning {
    &:before {
        color: $--color-warning;
    }
}

.el-status--danger {
    &:before {
        color: $--color-danger;
    }
}

.el-status--info {
    &:before {
        color: $--color-info;
    }
}